<?xml version="1.0"?>
<recipe>
   <#if appCompat && !(hasDependency('com.android.support:appcompat-v7'))>
       <dependency mavenUrl="com.android.support:appcompat-v7:${buildApi}.+" />
    </#if>

    <#if (buildApi gte 22) && appCompat && !(hasDependency('com.android.support:design'))>
        <dependency mavenUrl="com.android.support:design:${buildApi}.+" />
    </#if>

    <merge from="root/AndroidManifest.xml.ftl" to="${escapeXmlAttribute(manifestOut)}/AndroidManifest.xml" />

    <merge from="root/res/values/dimens.xml.ftl" to="${escapeXmlAttribute(resOut)}/values/dimens.xml" />
    <merge from="root/res/values/strings.xml.ftl" to="${escapeXmlAttribute(resOut)}/values/strings.xml" />
    <merge from="root/res/values/ids.xml.ftl" to="${escapeXmlAttribute(resOut)}/values/ids.xml" />

    <instantiate from="root/res/layout/activity_splash.xml.ftl" to="${escapeXmlAttribute(resOut)}/layout/${layoutName}.xml" />
    <instantiate from="root/res/layout/activity_animation.xml.ftl" to="${escapeXmlAttribute(resOut)}/layout/activity_animation.xml" />
    <instantiate from="root/res/layout/fragment_entry.xml.ftl" to="${escapeXmlAttribute(resOut)}/layout/fragment_entry.xml" />


    <instantiate from="root/src/app_package/activity/AbsGuideActivity.java.ftl" to="${escapeXmlAttribute(srcOut)}/activity/AbsGuideActivity.java" />
    <instantiate from="root/src/app_package/activity/AnimationActivity.java.ftl" to="${escapeXmlAttribute(srcOut)}/activity/AnimationActivity.java" />
    <instantiate from="root/src/app_package/activity/SplashActivity.java.ftl" to="${escapeXmlAttribute(srcOut)}/activity/${activityClass}.java" />
    <instantiate from="root/src/app_package/activity/GuideActivity.java.ftl" to="${escapeXmlAttribute(srcOut)}/activity/GuideActivity.java" />

    <instantiate from="root/src/app_package/view/GuideView.java.ftl" to="${escapeXmlAttribute(srcOut)}/view/GuideView.java" />

    <instantiate from="root/src/app_package/bean/SingleElement.java.ftl" to="${escapeXmlAttribute(srcOut)}/bean/SingleElement.java" />
    <instantiate from="root/src/app_package/bean/SinglePage.java.ftl" to="${escapeXmlAttribute(srcOut)}/bean/SinglePage.java" />


    <instantiate from="root/src/app_package/fragment/Fragment_Entry.java.ftl" to="${escapeXmlAttribute(srcOut)}/fragment/Fragment_Entry.java" />

    <instantiate from="root/src/app_package/adapter/FragmentTabAdapter.java.ftl" to="${escapeXmlAttribute(srcOut)}/adapter/FragmentTabAdapter.java" />


    <copy from="root/res/drawable-xhdpi/bg_page_01.png" to="${escapeXmlAttribute(resOut)}/drawable-xhdpi/bg_page_01.png" />
    <copy from="root/res/drawable-xhdpi/bg_page_02.png" to="${escapeXmlAttribute(resOut)}/drawable-xhdpi/bg_page_02.png" />
    <copy from="root/res/drawable-xhdpi/bg_page_03.png" to="${escapeXmlAttribute(resOut)}/drawable-xhdpi/bg_page_03.png" />
    <copy from="root/res/drawable-xhdpi/bg_page_04.png" to="${escapeXmlAttribute(resOut)}/drawable-xhdpi/bg_page_04.png" />
    <copy from="root/res/drawable-xhdpi/bg_page_05.png" to="${escapeXmlAttribute(resOut)}/drawable-xhdpi/bg_page_05.png" />
    <copy from="root/res/drawable-xhdpi/ic_stuff.png" to="${escapeXmlAttribute(resOut)}/drawable-xhdpi/ic_stuff.png" />
    <copy from="root/res/drawable-xhdpi/ic_dot_default.png" to="${escapeXmlAttribute(resOut)}/drawable-xhdpi/ic_dot_default.png" />
    <copy from="root/res/drawable-xhdpi/ic_dot_selected.png" to="${escapeXmlAttribute(resOut)}/drawable-xhdpi/ic_dot_selected.png" />
    <copy from="root/res/drawable-xhdpi/welcome.png" to="${escapeXmlAttribute(resOut)}/drawable-xhdpi/welcome.png" />



    <open file="${escapeXmlAttribute(srcOut)}/${activityClass}.java" />

</recipe>
